package universityModel.person;

/**
 *
 * @author Дмитрий
 */
public class BiographicalData {
    private String birthday;
    private String birthPlace;
    private int idenCode;
    
    public BiographicalData(String dayOfBirthday, 
    						String placeOfBirth, 
    						int identificationCode) {
	this.birthday = dayOfBirthday;
	this.birthPlace = placeOfBirth;
	this.idenCode = identificationCode;
    }
	 
    public BiographicalData(BiographicalData biographicalData) {
	birthday = biographicalData.birthday;
	birthPlace = biographicalData.birthPlace;
	idenCode = biographicalData.idenCode;
    }
	 
    public int getIdenCode() {
	return idenCode;
    }
	
    public String birthday() {
	return birthday;
    }
	
    public String getBirthPlace() {
	return birthPlace;
    }
	 
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        
        builder.append("Day of birthday: ");
        builder.append(birthday);
        builder.append("\nPlace of birth: ");
        builder.append(birthPlace);
        builder.append("\nIdentification code: ");
        builder.append(idenCode);
        builder.append("\n");
	return  builder.toString();   
    }
 }
